﻿using System;
using System.ComponentModel;

namespace Gmantis.Uploader
{
    public class UploadCompletedEventArgs : AsyncCompletedEventArgs
    {
        // Fields
        private string[] _files;
        private object _response;
        private bool _success;

        // Methods
        public UploadCompletedEventArgs(bool success, bool cancelled, Exception error, string[] files, object response, object userState)
            : base(error, cancelled, userState)
        {
            this._files = files;
            this._success = success;
            this._response = response;
        }

        // Properties
        public string[] Files
        {
            get
            {
                return this._files;
            }
        }

        public object Response
        {
            get
            {
                return this._response;
            }
        }

        public bool Success
        {
            get
            {
                return this._success;
            }
        }
    }
}
